package com.springcloud.alibaba.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author:RenPu
 * @Date: 2020/6/30 18:32
 * @Version: 1.0
 * @description:
 */
@Component
@FeignClient(value = "consul-payment-server")
public interface PaymentService {

    @GetMapping(value ="/hystrix/test_OK/{id}" )
    public String hystrixTest_OK(@PathVariable Long id);

    @GetMapping(value ="/hystrix/test_ERROR/{id}")
    public String hystrixTest_ERROE(@PathVariable Long id);

}
